package models;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.Table;

import play.data.validation.Email;
import play.data.validation.MaxSize;
import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
@Table(name="appointment")
public class Appointment extends Model {

	public String subject;
	@Required
	@Column(name="first_name")
	public String firstName;
	@Required
	@Column(name="last_name")
	public String lastName;
	public String degree;
	public String company;
	public String address;
	public String city;
	public String state;
	@Column(name="zip_code")
	public String zipCode;
	public String phone;
	@Required
	@Email
	public String email;
	@Required
	@Lob
	@MaxSize(50000)
	public String msg;
	@Column(name="product_interest")
	public String productInterest;
	@Column(name="submit_time")
	public Date submitTime=new Date();
	
	
	
}
